@import "./itemList.skeleton.scss";

.page-view{
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-flow: column;
  >.top-view{
    height: 100rpx;
    border-bottom: 1rpx solid #f3f4f6;
  }
  >.bottom-view{
    flex: 1;
    display: flex;
    height: calc(100vh - 101rpx); //必须，否则真机可能失效
  }
}

.category-one-body{
  width: 190rpx;
  height: 100%;
  .category-one{
    height: 100%;
    width: 190rpx;
    background: #F9F8F8;
    color: #616161;
    overflow-y: auto;
    font-size: 26rpx;
    .item{
      text-align: left;
      padding: 30rpx 35rpx;
      overflow: hidden;
      &.active{
        color: #020202;
        background: #fff;
        font-weight: bold;
      }
    }
  }
}

.goods-view-body{
  position: relative;
  flex: 1;
  height: 100%;
  display: flex;
  flex-flow: column;
  overflow: hidden;
  >.category-two-body{
    height: 88rpx;
    overflow: hidden;
  }
  >.head-view{
    background: #fff;
    display: flex;
    height: 84rpx;
    border-top: 1rpx solid #f3f4f6;
    border-bottom: 1rpx solid #f3f4f6;
    align-items: center;
    > view{
      flex: 1;
      text-align: center;
      height: 64rpx;
      font-size: 28rpx;
      color: #000;
      line-height: 64rpx;
      &.interval{
        flex: initial !important;
        width: 2rpx;
        height: 24rpx;
        background:#f3f4f6;
      }
      > image{
        width:16rpx;
        height:20rpx;
        margin-left:10rpx;
        position:relative;
        top:2rpx;
      }
    }
  }
  >.goods-view-group{
    flex: 1;
    overflow: hidden;
    .goods-view{
      height: 100%;
      overflow-anchor: auto; //重要，防止重新流动
    }
  }
}

.category-two{
  white-space: nowrap;
  height: 88rpx;
  background-color: #fff;
  position: relative;
  z-index: 2;
  .category-two-item{
    height: 48rpx;
    line-height: 48rpx;
    text-align: center;
    display: inline-block;
    white-space: normal;
    border-radius: 8rpx;
    margin-top: 20rpx;
    margin-right: 10rpx;
    font-size: 26rpx;
    color: #989797;
    overflow: hidden;
    padding: 0 16rpx;
    border: 1rpx solid #DBDBDB;
    &:last-child{
      margin-right: 10rpx !important;
    }
    &:nth-child(1){
      margin-left: 10rpx;
    }
    &.active{
      color: #FFD426;
      background: rgba(253, 202, 31, 0.10);
      border: 1rpx solid #FDCA1F;
    }
  }
}

.category-title{
  margin: 0 24rpx;
  font-size: 28rpx;
  height: 74rpx;
  line-height: 90rpx;
  color: #989797;
  overflow: hidden;
}
.goods-item {
  display: flex;
  padding: 16rpx 24rpx 16rpx 0;
  height: 275rpx;
  &.hide-info{
    background: rgba($color: #F9F8F8, $alpha: 0.4);
    height: 275rpx;
    border-radius: 8rpx;
  }
  >.goods-item-img {
    position: relative;
    margin: 0 16rpx;
    flex-shrink: 0;
    .tags-mask {
      position: absolute;
      top: 0;
      left: 0;
      .tags-item {
        width: 51rpx;
        height: 49rpx;
        position: relative;
        > image {
          width: 100%;
          height: 100%;
          display: block;
          position: absolute;
          top: 0;
          left: 0;
        }
        > text {
          font-size: 18rpx;
          display: inline-block;
          width: 100%;
          color: #fff;
          text-align: center;
          line-height: 49rpx;
          position: relative;
          z-index: 2;
        }
      }
    }
    > image {
      width: 150rpx;
      height: 150rpx;
      border-radius: 8rpx;
      display: block;
      background: #F9F8F8;
    }
  }
  >.goods-item-info {
    position: relative;
    flex: 1;
    min-width: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    min-height: 258rpx;
    border-bottom: 1rpx solid #eee;
    .goods-item-info-top {
      height: 154rpx;
      margin-bottom: 16rpx;
      .goods-titles {
        width: 100%;
        line-height: 40rpx;
        font-size: 30rpx;
        margin-bottom: 8rpx;
        color: #242424;
        overflow: hidden;
        > .main-title{
          font-size: 30rpx;
          vertical-align: middle;
        }
        > .icon-tag{
          display: inline-block;
          vertical-align: middle;
          margin-right: 6rpx;
          overflow: hidden;
          font-size: 22rpx;
          line-height: 26rpx;
          color: #fff;
          height: 28rpx;
          text-align: center;
          border-radius: 4rpx;
          padding: 2rpx 6rpx;
          background-color: #FF6010;
          position: relative;
        }
      }
      .goods-sku {
        line-height: 34rpx;
        margin-top: 8rpx;
        font-size: 24rpx;
        color: #999999;
        > text:not(:last-child)::after {
          content: " | ";
        }
      }
      .goods-limt {
        margin-top: 10rpx;
        color: #FF6010;
        font-size: 16rpx;
        display: flex;
        flex-wrap: wrap;
        > text {
          display: inline-block;
          border-radius: 4rpx;
          border: 1rpx solid #FF6010;
          padding: 2rpx 4rpx;
          margin-right: 6rpx;
        }
      }
    }
    >.goods-item-info-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20rpx;
    }
  }
}

.type-buyer,.store-type-supplier{
  height: 20rpx!important;
}
.front{
  line-height: 20rpx!important;
}
.type-label-supplier{
  line-height: 20rpx!important;
}
